Electronic cam device and method of preparing cam data in electronic cam device

ABSTRACT

A method of automatically generating the cam data capable of realizing such a smooth cam profile that an acceleration at a designated point is zero without necessitating a special technique, comprising the steps of first obtaining an inclination at each designated point when an optimum cam profile is realized for each designated point by an automatic set value generating section ( 15 ), automatically obtaining, by using the inclination value and a preset equation, such a cam profile that the acceleration at the designated point is zero for each district between two designated start and endpoints, and lastly obtaining an entire cam profile by synthesizing the cam profiles obtained for each district.

BACKGROUND OF THE INVENTION Technical Field

The present invention relates to an electronic cam device for electrically achieving a cam motion by driving an object to be driven on the basis of preset cam data, and in particular, a method of generating a cam profile that generates cam data to achieve a smooth cam profile that an acceleration becomes zero at a given designated point.

In prior arts, a mechanical cam has been used for many years as means for converting rotating motions of a main shaft, which is driven by a motor, etc., into cyclic linear motions of a driven shaft. However, if a profile of one cam is determined in a case of a mechanical cam, only one cyclic cam profile (displacement curve) can be obtained. Therefore, since mechanical cams of different profiles to realize different cam profiles are manufactured in order to obtain the different cam profiles, and the mechanical cams are changed, considerable time for set-up time is required for manufacture, replacement and adjustment. Recently, an electronic cam device is used as means for reducing such troublesome work, which can directly drive a driven shaft being an object to be controlled, by a servomotor on the basis of preset cam data. The electronic cam device stores displacement data of cam profiles in a memory portion in advance, and the servomotor is driven and controlled on the basis of instructions from the memory portion, wherein the driven shaft may be displaced in compliance with desired cam profiles. According to such an electronic cam device, since it can respond to a different cam profile if the displacement data of cam profiles in the memory portion are replaced, designing time thereof can be shortened in comparison with a mechanical cam device.

A construction of such a prior art electronic cam device is shown in FIG. 14. Referring to FIG. 14, the prior art electronic cam device is composed of a controller 61, a servo driver 2 for carrying out speed control of a motor 3 upon receiving speed instructions from the controller 61, a motor 3, and a pulse generator (PG) 4.

Pulse signals corresponding to phases of a mechanical cam device are inputted into the controller 61, and the controller 61 outputs speed instructions to the servo driver 2 in response to the number of pulses of the pulse signals. Also, the controller 61 is composed of a counter 11, a set value storage section 12, a speed calculation section 13, a position calculation section 14, a position control gain multiplier 16, an adder 17 and a subtracter 18.

The counter 11 counts the number of pulses of inputted pulse signals. The set value storage section 12 stores cam data to realize cam profiles.

The speed calculation section 13 obtains the present phase on the basis of a count value of the counter 11, reads a displacement amount responsive to the phase from the cam data stored in the set value storage section 12, and calculates and outputs a speed instruction based on the displacement amount.

The position calculation section 14 obtains the present phase on the basis of a count value of the counter 11, reads a displacement amount responsive to the phase from the cam data stored in the set value storage section 12, and calculates and outputs a position instruction based on the displacement amount. The subtracter 18 subtracts position data counted by the counter 22 from the position instruction coming from the position calculation section 14 and outputs the same as a position error.

The position control gain multiplier 16 multiplies the position error, which is obtained by the subtracter 18, by a position control gain Kp, and outputs the same. The adder 17 adds value coming from the position control gain multiplier 16 to the speed instruction coming from the speed calculation section 13, and outputs the same to the servo driver 2 as a new speed instruction.

Also, the servo driver 2 is composed of a D/A converter 21, a counter 22, and a speed control section 23.

The D/A converter 21 converts the speed instruction from the controller 61 to analog signals and outputs the same. The counter 22 calculates position data, which expresses the position of the motor 3, by counting the number of pulse signals from the pulse generator 4. The speed control section 23 carries out speed control of the motor 3 on the basis of speed instructions of analog signals from the D/A converter 21.

Next, a description is given of actions of the prior art electronic cam device. First, cam data established by setting means (not illustrated) are stored in the set value storage section 12 of the controller 61. A start instruction of a cam action (not illustrated) is transmitted to the speed calculation section 13 and position calculation section 14 via the counter 11, wherein a speed instruction and a position instruction subject to the cam data stored in the set value storage section 12 are outputted to the servo driver 2. And, the speed of the motor 3 is controlled by the servo driver 2 on the basis of the speed instruction and position instruction.

In the prior art electronic cam device, it is necessary to generate cam data, which are established in the set value storage section 12, in advance. In detail, as shown in FIG. 15, where displacement is pointed out at respective designated points P₀, P₁, P₂, P₃, P₄, which are caused to correspond to the phase of the cam, a cam profile by which the respective designated points are connected to each other is designed by a straight or curved line. And, data to realize the obtained cam profile are generated and established in the set value storage section 12, wherein a cam motion is achieved on the basis of the designed cam profile.

With regard to the cam data shown in FIG. 15, an ordinate indicates a dimensionless value corresponding to a target value of the displacement that is obtained by operating the electric cam device shown in FIG. 14, and an abscissa indicates a dimensionless value corresponding to a target value of the phase that is also obtained by operating the electric cam device shown in FIG. 14.

In order to secure a cam profile that is able to suppress a shock, which is applied to a machine at the respective points, to the minimum, it is necessary to generate a cam profile for which an acceleration becomes zero at respective designated points. However, in order to design a smooth cam profile which connects the designated points and for which the acceleration becomes zero at respective designated points, a technique of a mechanical cam mechanism is needed, wherein a smooth cam profile cannot be easily obtained by the unskilled.

Also, in the prior art electronic cam device described above, it is necessary that cam data to realize a smooth cam profile passing through respective given designated points at an acceleration of zero are generated in advance, wherein, since expert knowledge of cam profile technology is required, there is a problem by which it is impossible to set cam data by anyone other than specified engineers.

SUMMARY OF THE INVENTION

It is therefore an object of the invention to provide an electronic cam device, which is able to automatically generate cam data to realize, without requiring any special technique, a smooth cam profile that an acceleration is zero at a designated point, and a method for generating cam data in the electronic cam device.

In order to achieve the above-described object, a method for generating cam data in an electronic cam device according to the present invention, which controls the electronic cam device for electrically realizing cam actions by driving an object to be driven, on the basis of preset cam data, comprising the steps of:

inputting coordinate values composed of phases of a plurality of designated points and displacement thereof;

calculating inclinations of the start and end points of a cam profile corresponding to a district between two designated start and end points adjacent to each other of a plurality of given designated points;

obtaining values of tanβ₀ and tanβ₁ by an equation which is expressed by the above calculated inclinations of the start and end points, Δx which is a difference in phase between the start and end points, and

tanβ₀=Inclination at the start point×Δx/π

tanβ₁=Inclination at the end point×Δx/π

calculating a cam profile in the corresponding district by obtaining a value of displacement y with respect to the phase Φ using an equation which is expressed by the above-described tanβ₀, tanβ₁, and Δy which is a difference between displacement at the start point and at the end point, and y=A(Φ−1/2sin2Φ)+Φtanβ₀+1/2(tanβ₁−tanβ₀)(Φ−sinΦ)

-   -   wherein coefficient A is defined as         A=Δy/π−1/2(tanβ₁−tanβ₀)         and

generating the entire cam curve by calculating and synthesizing a cam profile existing between the two corresponding points with respect to all districts.

Further, the step of calculating the inclinations at the start point and end point of a cam profile of a district for which two designated points adjacent to each other of the above-described plurality of given designated points are made into the start point and end point may calculate the inclination a the above-described start point in compliance with the following steps:

(a) in a case where the present district is a straight line, the inclination (Δy/Δx) of the present district is made into an inclination at the start point, thereby finishing the calculation of the inclination;

(b) in a case where the present district is the top district, the final district is made into the foregoing district;

(c) in a case where the foregoing district is a straight line, the inclination of a straight line of the foregoing district is made into an inclination at the start point, thereby finishing the calculation of the inclination;

(d) in a case where the polarities of the inclinations at the entire foregoing districts are different from that of the inclination at the entire present district, the inclination at the start point is regarded as zero, thereby finishing the calculation of the inclination; and

(e) the average of an inclination when the present district is linearly approximated and an inclination when the foregoing district is linearly approximated is made into the inclination at the start point; and

the above-described step may calculate an inclination at the above-described end point in compliance with the following steps;

(A) in a case where the present district is a straight line, the inclination (Δy/Δx) of the present district is made into an inclination at the end point, thereby finishing the calculation of the inclination;

(B) in a case where the present district is the final district, the top district is made into the succeeding district;

(C) in a case where the succeeding district is a straight line, the inclination of a straight line of the succeeding district is made into an inclination at the end point, thereby finishing the calculation of the inclination;

(D) in a case where the polarities of the inclinations of the entire succeeding districts are different from that of the inclination of the entire present district, the inclination at the end point is regarded as zero, thereby finishing the calculation of the inclination; and

(E) the average of an inclination when the present district is linearly approximated and an inclination when the succeeding district is linearly approximated is made into the inclination at the end point.

According to the invention, since it is possible to automatically calculate, on the basis of coordinate values of the given designated point, a smooth cam profile that passes through respective designated points by a smooth curve and the accelerations at the respective designated points become zero, a smooth cam profile can be easily realized without requiring any special technique.

As described above, according to the invention, it is possible for even unskilled persons to produce cam data that does not bring about any shock to a machine, without acquiring a cam technique of a mechanical cam mechanism, wherein such an effect can be brought about, which can shorten the designing time to a large extent.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram showing a construction of an electronic cam device according to one embodiment of the invention;

FIG. 2 is a view illustrating a cam profile which describes a method for calculating an inclination at the start point and an inclination at the end point in an electronic cam device according to one embodiment of the invention;

FIG. 3 is a flowchart showing a method for calculating the inclination at the start point;

FIG. 4 is a view describing a detailed method of obtaining the inclination at the start point;

FIG. 5 is a flowchart showing a method for calculating the inclination at the end point;

FIG. 6 is a view showing a method for generating a smooth speed curve;

FIG. 7 is a view showing position data of a fixed-dimension cutting machine;

FIG. 8 is a view showing a cam profile, at district 1 in FIG. 7, which is generated in a cam device according to the present embodiment;

FIG. 9 is a view showing a cam profile, at district 2 in FIG. 7, which is generated in a cam device according to the present embodiment;

FIG. 10 is a view showing a cam profile, at district 3 in FIG. 7, which is generated in a cam device according to the present embodiment;

FIG. 11 is a view showing a cam profile, at district 4 in FIG. 7, which is generated in a cam device according to the present embodiment;

FIG. 12 is a view showing the entire cam profile obtained by connecting cam curves at the respective districts in FIG. 8 through FIG. 11;

FIG. 13 is a view showing data of displacement, speed and acceleration where the machine is operated with the cam profile obtained in FIG. 12;

FIG. 14 is a block diagram showing a construction of a prior art electronic cam device; and

FIG. 15 is a view describing a method for generating cam data according to the prior art electronic cam device.

DETAILED DESCRIPTION OF THE EMBODIMENTS

Next, a detailed description is given of an embodiment of the invention with reference to the accompanying drawings.

FIG. 1 is a block diagram showing a construction of an electronic cam device according to one embodiment of the invention. In FIG. 1, components which are the same as those in FIG. 14 are given the same reference number, and overlapping description thereof is omitted.

An electronic cam device according to the present embodiment is such that the controller 61 in the prior art electronic cam device is substituted by the controller 1, And, the controller 1 is different from the controller 61 in that an automatic generating section 15 of set values, which is able to automatically generate cam data to realize a smooth cam profile on the basis of given designated points, is newly added to the controller 61 shown in FIG. 14.

Set values generated by the set value generating section 15 are stored in the set value storage section 12. Since subsequent processes are similar to those carried out by the prior art electronic cam device shown in FIG. 14, description thereof is omitted.

The cam data that is dealt within the set value generating section 15 and the set value storage section 12 is all dimensionless value. More specifically, displacements x, y, X and Y (which will be used in explanations for FIGS. 2, 4 and 6 to 13) are cam data having dimensionless values which correspond to respective displacements obtained by operating the electric cam device. Similarly, Φ and π correspond to phases and are also dimensionless values when expressing cam data. Y′, U′ and V′ are also dimensionless values which correspond to speeds.

Next, a detailed description is given of a method for automatically generating cam data by the set value automatic generating section 15 of an electronic cam device according to the embodiment with reference to the drawings.

In the method for generating cam data in the electronic cam device according to the embodiment, inclinations at respective designated points when an optimum cam profile is realized are obtained for the respective designated points. And, cam curves are obtained at respective districts, for which two designated points are made into the start point and end point, by using the inclination values and the following equations (1), (2), (3) and (4), and the entire cam profile is obtained by synthesizing cam curves obtained for the respective districts: y=A(Φ−1/2sin2Φ)+Φtanβ₀+1/2(tanβ₁−tanβ₀)(Φ−sinΦ)  (1) where A in equation (1) is expressed by the following equation (2). A=Δy/π−1/2(tanβ₁−tanβ₀)  (2)

And, tanβ₀ and tanβ₁ in the equations (1) and (2) are, respectively, expressed by equations (3) and (4). Δx/π is a coefficient for scaling each district to a district of 0 to π. Δx is a difference in the x coordinate between two designated points, and Δy is a difference in the y coordinate between two designated points. tanβ₀=y/Φ=Inclination at the start point×Δx/π  (3) tanβ₁=y/Φ=Inclination at the end point×Δx/π  (4)

The above-described equation (3) can be obtained by substituting Φ=x×π/Δx in tanβ₀=y/Φ. The reason Φ=x×π/Δx is obtained is as shown below. Although, in FIG. 2, smooth curves are generated in districts 0 through π, an actual difference in phase between the two designated points does not necessarily become π. Therefore, in order to scale curves generated in the districts from 0 through π to the actual difference in phase between two designated points, Φ=x×π/Δx is assumed.

At this time, a method for calculating the inclination at the start point and that at the end point is described with reference to FIG. 2. In order that the final data obtained by synthesizing cam curves obtained at respective districts becomes a smooth profile (curve), it is indispensable that the final speed (inclination) of the cam profile of the foregoing district is coincident with the initial speed (inclination) of the succeeding district.

First, a description is given of a method for obtaining the inclination at the start point with reference to FIG. 3.

In order that the synthesized final data becomes a smooth curve, it is necessary that the inclination at the start point of the foregoing and succeeding straight and curved lines is matched to the inclination at the end point. In cases of connection of a straight line and a curved line, the start district and the end district, the inclination at the start point is obtained by the following steps, with a case, in which the polarities of the inclinations differ from each other, taken into consideration:

(1) in a case where the present district is a straight line, the inclination (Δy/Δx) of the present district is made into an inclination at the start point;

(2) in a case where the present district is the top district, the final district is made into the foregoing district;

(3) in a case where the foregoing district is a straight line and the present district is a curved line, the inclination of a straight line of the foregoing district is made into an inclination at the start point;

(4) in a case where both the foregoing district and the present district are curved lines, and the polarities of the inclinations of the entire foregoing districts are different from that of the inclination of the entire present district, the inclination at the start point is regarded as zero; that is, the initial speed becomes zero, and

(5) in a case where both the foregoing district and the present district are curved lines, and the polarities of the inclinations of the entire foregoing districts are the same as that of the inclination of the entire present district, the average of an inclination when the present district is linearly approximated and an inclination when the foregoing district is linearly approximated is made into the inclination at the start point.

In such a case, a description is given of a detailed method for obtaining the inclination at the start point with reference to FIG. 4. It is assumed that, in FIG. 4, data of the designated points are (X₀,Y₀), (X₁,Y₁), (X₂,Y₂), (X₃,Y₃), (X₄,Y₄), and the corresponding point is approximated by a straight line. It is assumed that lengths and inclinations of segments at this time are, respectively, I₀₁, I₁₂, I₂₃, I₃₄, and k₀₁, k₁₂, k₂₃, and k₃₄. At this time, the inclination at the start point is determined by Equation (5) based on the lengths and inclinations of the foregoing and succeeding segments at the designated point which becomes the start point. Inclination at the start point=(Inclination of the segment immediately before the designated point×Length of the segment immediately after the designated point)/(Length of the segment immediately before the designated point+Length of the segment immediately after the designated point)+Inclination of the segment immediately after the designated point×Length of the segment immediately before the designated point)/(Length of the segment immediately before the designated point+Length of the segment immediately after the designated point)  (5)

A description is given of an example in which the segment connecting P₁−P₂ is taken for instance. The inclination at the start point is obtained by the following equation (6) on the basis of lengths I₀₁, I₁₂ and inclinations k₀₁, k₂ of P₀−P₁ and P₁−P₂. At this time, I₀₁, I₁₂, k₀₁, and k₁₂ are expressed by the following equations (7) through (10). Inclination at the start point=(k ₀₁ ×I ₁₂)/(I₀₁ +I ₁₂)+(k ₁₂ ×I ₀₁)/(I ₀₁ +I ₁₂)  (6) I ₀₁=((X ₁ −X ₀)²+(Y ₁ −Y ₀)²)^(1/2)  (7) I ₁₂=((X ₂ −X ₁)²+(Y ₂ −Y ₁)²)^(1/2)  (8) k ₀₁=((Y ₁ −Y ₀)/(X ₁ −X ₀))  (9) k ₁₂=((Y ₂ −Y ₁)/(X₂ −X ₁))  (10)

Next, a description is given, as follows, of the steps for obtaining the inclination at the end point with reference to FIG. 5 as in the above.

(1) in a case where the present district is a straight line, the inclination (Δy/Δx) of the present district is made into an inclination at the end point;

(2) in a case where the present district is the final district, the top district is made into the succeeding district;

(3) in a case where the succeeding district is a straight line and the present district is a curved line, the inclination of a straight line of the succeeding district is made into an inclination at the end point;

(4) in a case where both the succeeding district and the present district are curved lines, and the polarities of the inclinations of the entire succeeding districts are different from that of the inclination of the entire present district, the inclination at the end point is regarded as zero. That is, the final speed becomes zero; and

(5) in a case where both the succeeding district and the present district are curved lines, and the polarities of the inclinations of the entire succeeding districts are the same as that of the inclination of the entire present district, the average of an inclination when the present district is linearly approximated and an inclination when the succeeding district is linearly approximated is made into the inclination at the end point.

In such a case, by the method similar to that for having obtained the inclination at the start point, the inclination at the end point can be obtained by lengths I₁₂, I₂₃ and inclinations k₁₂, k₂₃ of P₁–P₂ and P₂–P₃ as well.

Next, a cam profile in the district 1 is produced by the above-described equations (1), (2), (3), and (4) using the obtained values of the inclinations at the start point and end point. Similarly, cam profiles in the respective districts are generated with respect to the districts 2, 3 and 4. Herein, by synthesizing the cam profiles in the entire districts, the entire cam profile can be obtained.

Next, a description is given of how the equations (1) and (2) have been obtained, with reference to FIG. 6. FIG. 6 is a view showing a method for generating a smooth dimensionless value curve corresponding to speed.

Referring to FIG. 6, it is assumed that, in a plane coordinate whose abscissa indicates a dimensionless value corresponding to phase and ordinate indicates a dimensionless value y corresponding to displacement, the tangential angle at both ends of the start point and end point, which connect two optional points (X,Y), are, respectively, β₀ and β₁ [rad]. An equation to calculate a smooth cam profile that the acceleration becomes zero at two designated points is generated as shown below.

First, a dimensionless value curve y′ corresponding to speed approximated by a SIN curve to obtain a smooth curve is led out.

In order to carry out curve approximation by (1−cosΦ), A is determined to be an indeterminate coefficient, wherein a dimensionless value component U′ corresponding to speed in which the speeds at the start point and end point become zero is expressed by the following equation (11). U′=A(1−cos2Φ)  (11)

Since tanβ₀ and tanβ₁ respectively become a speed at the start point and that at the end point, a dimensionless value component V′ corresponding to speed including the speed at the start point and that at the end point is expressed by the following equation (12). V′=tanβ₀+1/2(tanβ₁−tanβ₀)(1−cosΦ)  (12)

The dimensionless value curve y′ corresponding to speed becomes the sum of the dimensionless value component U′ corresponding to speed and dimensionless value component V′ corresponding to speed and is expressed by the following equation (13). y′=A(1−cos2Φ)+tanβ₀+1/2(tanβ₁−tanβ₀)(1−cosΦ)  (13)

The dimensionless value y corresponding to displacement is obtained by integrating the dimensionless value curve y′ corresponding to speed and is expressed by the following equation (14). Y=A(Φ−1/2(sin2Φ)+tanβ₀+1/2(tanβ₁−tanβ₀)(Φ−sinΦ)  (14)

Herein, in order to obtain a coefficient A, two cases are taken into consideration, one of which is a case where Φ=0 is established in Equation (1) and the other of which is a case where Φ=π is established therein.

In the case of Φ=0, the dimensionless value y corresponding to displacement becomes zero.

In the case of Φ=π, Δy is expressed by the following equation (15). Δy=π(A+tanβ₀+(tanβ₁−tanβ₀)/2)  (15)

By converting Equation (15) in the form of A=, the following equation (16) which is in the same form of Equation (2) can be obtained. A=Δy/π−1/2(tanβ₁+tanβ₀)  (16)

As described above, in the generating method with a cam in the electronic cam device according to the embodiment, where a plurality of designated points are given, the inclination in the case where the optimum cam profiles at respective designated points are realized is first obtained for each of the respective designated points, and a cam profile for each of the districts where two designated points are made into the start point and end point is obtained by using the value of the inclination and Equations (1), (2), (3) and (4), wherein the entire cam profile is obtained by connecting the cam profiles acquired for each of the districts.

By doing so, in the electronic cam device according to the embodiment, by only designating a designated point, for which dimensionless value corresponding to displacement is regulated, on the plane coordinate (X,Y), it is possible to automatically generate a smooth cam curve that passes through all the designated point at an acceleration of 0.

Next, a detailed description is given of a method for automatically generated an actual cam profile by an electronic cam device according to the embodiment with reference to FIG. 7 through FIG. 11.

An example of position data of a fixed-dimension cutting machine used in the description is shown in FIG. 7. In the plane coordinate on which the abscissa indicates a dimensionless value corresponding to phase, and the ordinate indicates dimensionless value corresponding to displacement. Reference symbol P₀ denotes an operation start position, P₁ and P₂, respectively, denote a start point and an end point of a straight line area synchronized with products in order to cut off the respective products, P₃ denotes a stop position after products are cut off, and P₄ denotes a point returning to the start point. And it is assumed that districts of curves connecting the respective points are District 1 (P₀–P₁), District 2 (P₁–P₂), district 3 (P₂–P₃), and District 4 (P₃–P₄). Herein, the designated District P₄ becomes a designated District P₀ in the next cycle.

First, tanβ₀, tanβ₁ in respective districts and coefficient A are obtained as described below.

(1) District 1

Inclination at the start point=0 (zero is determined since the polarity of District 1 is different from the inclination of the entire District 4.

Inclination at the end point=1 (since the inclination of a straight line in District 2 is 24/24=1)

Δx=10

Δy=6 Φ=x input ×π/Δx=x input×π/10 tanβ₀=Inclination at the start point×Δx/π=0×10/π=0 tanβ₁=Inclination at the end point×Δx/π=1×10/π=10/π A=Δy/π−1/2(tanβ₁+tanβ₀)=6/π−1/2(10/π)=1/π

(2) District 2 Inclination at the start point=1(Δy/Δx since being a straight line) Inclination at the end point (Δy/Δx since being a straight line)

Δx=24

Δy=24 Φ=x input×π/Δx=x input×π/24 tanβ₀=Inclination at the start point×Δx/π=1×24/π=24/π tanβ₁=Inclination at the end point×Δx/π=1×24/π=24/π A=Δy/π−1/2(tanβ₁+tanβ₀)=24/π−1/2(24/π+24/π)=0

(3) District 3

Inclination at the start point=1 (Since the inclination of a straight line in District 2 is 24/24=1)

Inclination at the end point=0 (Zero is determined since the polarity is different from the inclination of the entire District 4).

Δx=10

Δy=6 Φ=x input×π/Δx=x input×π/10 tanβ₀=Inclination at the start point×Δx/π=1×10/π=10/π tanβ₁=Inclination at the end point×Δx/π=0×10/π=0 A=Δy/π−1/2(tanβ₁+tanβ₀)=6/π−1/2(10/π)=1/π

(4) District 4

Inclination at the start point=0 (Zero is determined because the polarity is different from the inclination of the entire District 3)

Inclination at the end point=0 (Zero is determined because the polarity is different from the inclination of the entire District 1)

Δx=28

Δy=−36 Φ=x input×π/Δx=x input×π/28 tanβ₀=Inclination at the start point×Δx/π=0×28/π=0 tanβ₁=Inclination at the end point×Δx/π=0×28/π=0 A=Δy/π−1/2(tanβ₁+tanβ₀)=−36/π

And, cam profiles in Districts 1, 2, 3 and 4 are, respectively, generated as shown in FIGS. 8, 9, 10 and 11, by using the values of tanβ₀ and tanβ₁ and value of the coefficient A, which are obtained by the above-described calculations, and using Equation (1).

Finally, it is possible to obtain FIG. 12, which shows the entire cam profile, by synthesizing the cam profiles in the respective Districts 1, 2, 3 and 4 obtained.

FIG. 13 shows displacement, speed and acceleration data in the case where the fixed-dimension cutting machine being an object to be controlled, is operated by the cam profile obtained in FIG. 12. Referring to FIG. 13, in the cam profile obtained by the electronic cam device according to the present embodiment, it is found that the cam profile passed through the respective designated points with smooth curves, and the accelerations at the respective points become zero. Therefore, in the object to be controlled by such a cam profile, there is no case where any shock is applied to the machine.

As described above, according to the invention, such effects can be brought about, by which it is possible for even unskilled persons to simply prepare cam data that do not apply any shock to a machine, without acquiring a cam technique of a mechanical cam mechanism, and the designing time thereof can be shortened to a large extent. 

1. A method for generating cam data in an electronic cam device which controls the electronic cam device for electrically realizing cam actions by driving an object to be driven, on the basis of preset cam data, comprising the steps of: inputting coordinate values composed of dimensionless values corresponding to phases of a plurality of designated points and dimensionless values corresponding to displacement thereof; calculating inclinations of the start and end points of a cam profile of a district for which two designated points adjacent to each other of a plurality of given designated points are made into the start and end points; obtaining values of tanβ₀ and tanβ₁ by an equation which is expressed by the above calculated inclinations of the start and end points, Δx which is a difference between dimensionless values each corresponding to displacements of the start and end points, and tanβ₀=Inclination at the start point×Δx/π tanβ₁=Inclination at the end point×Δx/π calculating a cam profile in the corresponding district by obtaining a dimensionless value y corresponding to displacement with respect to the dimensionless value Φ corresponding to phase using an equation which is expressed by said tanβ₀, tanβ₁, and Δy which is a difference between displacement at the start point and that at the end point, and y=A(Φ−1/2sin2Φ)+Φtanβ₀+1/2(tanβ₁−tanβ₀)(Φ−sinΦ) wherein coefficient A is defined as A=Δy/π−1/2(tanβ₁−tanβ₀); and generating the entire cam curve by calculating and synthesizing a cam profile existing between the two corresponding points with respect to all districts.
 2. The method for generating cam data in an electronic cam device as set forth in claim 1, wherein said step of calculating the inclination at the start point and end point of a cam profile of a district for which two designated points adjacent to each other of said plurality of given designated points are made into the start and end points may calculate the inclination at said start point in compliance with the following steps: (a) in a case where the present district is a straight line, the inclination (Δy/Δx) of the present district is made into an inclination at the start point, thereby finishing the calculation of the inclination; (b) in a case where the present district is the top district, the final district is made into the foregoing district; (c) in a case where the forgoing district is a straight line, the inclination of a straight line of the foregoing district is made into an inclination at the start point, thereby finishing the calculation of the inclination; (d) in a case where the polarities of the inclination at the entire foregoing districts are different from that of the inclination at the entire present district, the inclination at the start point is regarded as zero, thereby finishing the calculation of the inclination; and (e) the average of an inclination when the present district is linearly approximated and an inclination when the foregoing district is linearly approximated is made into the inclination at the start point; and said step may calculate an inclination at said end point in compliance with the following steps: (A) in a case where the present district is a straight line, the inclination (Δy/Δx) of the present district is made into an inclination at the end point, thereby finishing the calculation of the inclination; (B) in a case where the present district is the final district, the top district is made into the succeeding district; (C) in a case where the succeeding district is a straight line, the inclination of a straight line of the succeeding district is made into an inclination at the end point, thereby finishing the calculation of the inclination; (D) in a case where the polarities of the inclinations of the entire succeeding districts are different from that of the inclination of the entire present district, the inclination at the end point is regarded as zero, thereby finishing the calculation of the inclination; and (E) the average of an inclination when the present district is linearly approximated and an inclination when the succeeding district is linearly approximated is made into the inclination at the end point.
 3. An electronic cam device for electrically realizing cam actions by driving an object to be driven, on the basis of preset cam data, wherein coordinate values composed dimensionless values corresponding to phases of a plurality of designated points and dimensionless values corresponding to displacement thereof are inputted; inclinations of the start and end points of a cam profile corresponding to a district between two designated points adjacent to each other of a plurality of given designated points are calculated; values of tanβ₀ and tanβ₁ are obtained based on an equation which is expressed by the above calculated inclinations of the start and end points, Δx which is a difference in phase between the start and end points, and tanβ₀=Inclination at the start point×Δx/π tanβ₁=Inclination at the end point×Δx/π; a cam profile in the corresponding district is calculated by obtaining a dimensionless value y corresponding to displacement with respect to the dimensionless value Φ corresponding to phase using an equation which is expressed by the above-described tanβ₀, tanβ₁, and Δy which is a difference between dimensionless values each corresponding to displacement at the start point and that at the end point, and y=A(Φ−1/2sin2Φ)+Φtanβ0+1/2(tanβ1−tanβ0)(Φ−sinΦ) wherein the coefficient A is defined as A=Δy/π−1/2(tanβ1−tanβ0); and the entire cam profile is generated by calculating and synthesizing a cam profile existing between the two corresponding points with respect to all the districts.
 4. The electronic cam device as set forth in claim 3, wherein said means for automatically generating set values calculates the inclination at said start point in compliance with the following steps: (a) in a case where the present district is a straight line, the inclination (Δy/Δx) of the present district is made into an inclination at the start point, thereby finishing the calculation of the inclination; (b) in a case where the present district is the top district, the final district is made into the foregoing district; (c) in a case where the foregoing district is a straight line, the inclination of a straight line of the foregoing district is made into an inclination at the start point, thereby finishing the calculation of the inclination; (d) in a case where the polarities of the inclinations of the entire foregoing districts are different from that of the inclination of the entire present district, the inclination at the start point is regarded as zero, thereby finishing the calculation of the inclination; and (e) the average of an inclination when the present district is linearly approximated and an inclination when the foregoing district is linearly approximated is made into the inclination at the start point; and calculates the inclination at said end point in compliance with the following steps: (A) in a case where the present district is a straight line, the inclination (Δy/Δx) of the present district is made into an inclination at the end point, thereby finishing the calculation of the inclination; (B) in a case where the present district is the final district, the top district is made into the succeeding district; (C) in a case where the succeeding district is a straight line, the inclination of a straight line of the succeeding district is made into an inclination at the end point, thereby finishing the calculation of the inclination; (D) in a case where the polarities of the inclinations of the entire succeeding districts are different from that of the inclination of the entire present district, the inclination at the end point is regarded as zero, thereby finishing the calculation of the inclination; and (E) the average of an inclination when the present district is linearly approximated and an inclination when the succeeding district is linearly approximated is made into the inclination at the end point. 